import React, { Component } from 'react'
import './css/style.css'
export class NavBar extends Component {
  render() {
    console.log(this.props.slot())
    const { slot } = this.props
    return (
      <div className='nav-bar'>
        <div className="left">{slot('左边')}</div>
        <div className="center">{slot('中间')}</div>
        <div className="right">{slot('右边')}</div>
      </div>
    )
  }
}

export default NavBar